#ifndef CLIENTSDAO_H
#define CLIENTSDAO_H

#include<db/databaseconn.h>
#include<domain/client.h>
#include<QSqlDatabase>

class ClientsDAO : public DatabaseConn
{
    Q_OBJECT

public:
    explicit ClientsDAO(QObject *parent = 0);
    int insertClient(QString firstname, QString lastname, int age);
    QList<Client *> getClients();
    Client* getClient(int clientId);
    inline QSqlDatabase getDatabase(){return db;}

private:
    QString *tableName;

};

#endif // CLIENTSDAO_H
